Python - Trigonometric Inverse Functions